﻿<Window x:Class="WpfApplication2.DBConnection"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Data Base Connection" Height="317" Width="366" Loaded="Window_Loaded"
        Icon="favicon.ico">
    <Grid Height="279" Width="338">
        <Border BorderBrush="Silver" BorderThickness="1" Height="245" HorizontalAlignment="Left" Margin="12,22,0,0" Name="border1" VerticalAlignment="Top" Width="314">
            <Label Content="Authentication : " Height="35" Name="label1" Width="101" VerticalAlignment="Top"  Margin="5,5,0,0" FontSize="13" HorizontalAlignment="Left"/>
        </Border>
        <RadioButton Content="Windows Authentication" Height="16" HorizontalAlignment="Left" Margin="127,34,0,0" Name="rdbtnLogin" VerticalAlignment="Top" Checked="rdbtnLogin_Checked" />
        <RadioButton Content="SQL Server Authentication" Height="16" HorizontalAlignment="Left" Margin="127,57,0,0" Name="rdbtnSQLLogin" VerticalAlignment="Top" Checked="rdbtnSQLLogin_Checked" />
        <Border BorderBrush="Silver" BorderThickness="1" Height="136" HorizontalAlignment="Left" Margin="43,87,0,0" Name="border2" VerticalAlignment="Top" Width="255">
        </Border>
        <TextBox Height="23" Name="txtBoxServerName" Width="140" HorizontalAlignment="Left" VerticalAlignment="Top"  Margin="140,104,0,0"  /> <!--TextChanged="txtBoxServerName_TextChanged"-->
        <TextBox Height="23" Name="txtBoxUserName" Width="140" HorizontalAlignment="Left" VerticalAlignment="Top"  Margin="140,144,0,0" />
        <PasswordBox Height="23" Name="txtBoxPwd" Width="140" HorizontalAlignment="Left" VerticalAlignment="Top"  Margin="140,184,0,0"  />
        <Label Content="Server Name:" Height="28" Name="lblSrvrName" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="52,100,0,0" Width="84" />
        <Label Content="User Name:" Height="28" HorizontalAlignment="Left" Margin="52,140,0,0" Name="lblUserName" VerticalAlignment="Top" />
        <Label Content="Password:" Height="28" HorizontalAlignment="Left" Margin="52,180,0,0" Name="lblPwd" VerticalAlignment="Top" />
        <Button Content="Connect" Height="23" HorizontalAlignment="Left" Margin="166,234,0,0" Name="button1" VerticalAlignment="Top" Width="134" Click="button1_Click" />
    </Grid>
</Window>
